<?php
include 'header.php';
@$workers = dbSelectAll('select worker.name as worker_name,worker.id as worker_id,branch.name as branch_name,imgUrl,sex from worker 
							join branch on worker.branch_id=branch.id join role on worker.role_id=role.id where worker.role_id=3');
?>
				<div class='col-xs-10'>
					<div class='panel panel-primary'>
   						<div class='panel-heading'>
   							<div class='panel-title'>客户经理列表</div>
   						</div>
   						<div class='panel-body'>
							<?php foreach ($workers as $worker){?>
								<div class='col-xs-2'>
									<div class='thumbnail text-center'>
										<img src='img/worker/<?php echo $worker['imgUrl'];?>' class='branchNameListImg' />
										<div style='margin:5px;'>
											<span><?php echo $worker['worker_name'];?></span>
											&nbsp;
											<span><?php echo $worker['sex'];?></span>
										</div>
										<div>
											<span><?php echo $worker['branch_name'];?></span>
										</div>
										<div>
											<span>
												<a href='#advance<?php echo $worker['worker_id'];?>' data-toggle='modal'>升职</a>
												<a href='#fall<?php echo $worker['worker_id'];?>' data-toggle='modal'>降职</a>
											</span>
										</div>
									</div>
								</div>
							<?php }?>
						</div>
					</div>
				</div>
			</div>
		</div>
	<script>
		$(function(){
			
		});
	</script>  
	</body>
</html>
